#include <atlbase.h>
#include <atlapp.h>
#include <atlgdi.h>
#include <atlmisc.h>
CComModule _Module;
#include <atlwin.h>
#include <atlcrack.h>

#include <gdiplus.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")

#include <vfw.h>
#pragma comment(lib, "vfw32.lib")
#include "Player.h"
#include "PlayerState.h"
#include "MainWindow.h"

//#define _WTL_USE_CPOINT
HINSTANCE hInst;

        
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPreInstance,
                     LPSTR lpCmdLine,
                     int nCmdShow)
{
    hInst = hInstance;
    GdiplusStartupInput gdiplusStartupInput;
    ULONG_PTR           gdiplusToken;   
   // Initialize GDI+.
    Gdiplus::Status st = GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);

    _Module.Init(0, hInstance);

    RepeaterWindow window;

    MSG msg;
    while( GetMessage( &msg, 0, 0, 0)){
        TranslateMessage( &msg );
        DispatchMessage( &msg );
    }

    _Module.Term();

    GdiplusShutdown(gdiplusToken);
    return 0;
}

    
